FROM golang:1.20.10-alpine3.17

WORKDIR /go/src/my/server

COPY . .

RUN go env -w GO111MODULE=on\
    && go env -w GOPROXY=https://goproxy.cn,direct \
    && go env \
    && go mod tidy \
    && go build -o server .


